﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:esriKml="clr-namespace:ESRI.ArcGIS.Client.Toolkit.DataSources.Kml;assembly=ESRI.ArcGIS.Client.Toolkit.DataSources"
    >

    <ControlTemplate x:Key="KmlPlaceMarkerSymbol">
        <Rectangle 
            Width="{Binding Symbol.Width}"
            Height="{Binding Symbol.Height}"
            Fill="{Binding Symbol.Fill}"
			Opacity="{Binding Symbol.Opacity}"
            esriKml:SurrogateBindTranslateX.TranslateX="{Binding Symbol.TranslateX}"
            esriKml:SurrogateBindTranslateY.TranslateY="{Binding Symbol.TranslateY}"
            esriKml:SurrogateBindRotate.Angle="{Binding Symbol.Heading}"
            esriKml:SurrogateBindScale.Scale="{Binding Symbol.Scale}"
            >
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <TranslateTransform />
                    <RotateTransform />
                    <ScaleTransform />
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
    </ControlTemplate>

</ResourceDictionary>
